package com.fuluwa.domain.bank.repository;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.fuluwa.domain.bank.model.Account;
import com.fuluwa.domain.bank.model.Account.AccountType;
import com.fuluwa.domain.security.model.User;

public interface AccountRepository extends JpaRepository<Account, Long> {
	Account findByAccountTypeAndUser(AccountType type,User user);
	Account findByAccountTypeAndUser_Id(AccountType type,Long id);
	Account findByAccountNo(String accountNo);
	List<Account> findByUser(User user);
}
